package com.aihna.mall.domain.bo;

import com.aihna.mall.domain.StoreProductAttrResult;
import com.aihna.common.core.validate.AddGroup;
import com.aihna.common.core.validate.EditGroup;
import com.aihna.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 商品属性业务对象 vvl_store_product_attr_result
 *
 * @author Joseph.Chen
 * @date 2024-03-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = StoreProductAttrResult.class, reverseConvertGenerate = false)
public class StoreProductAttrResultBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 商品ID
     */
    @NotNull(message = "商品ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long productId;

    /**
     * 商品属性参数
     */
    @NotBlank(message = "商品属性参数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String result;

    /**
     * 上次修改时间
     */
    @NotNull(message = "上次修改时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer changeTime;

    /**
     * 活动类型 0=商品，1=秒杀，2=砍价，3=拼团
     */
    private Integer type;


}
